package pl.edu.agh.mobsys.data;


/**
 * Reprezentuje kontakt SMOA, enkapsuluje parę kontaków do zlecania zgłoszeń
 * oraz odbierania notyfikacji z subskrypcji pod jednym aliasem
 * */
public class SmoaContact extends Contact {

	private String notifierXmppName, jobReceiverXmppName, notifierResource, jobReceiverResource;

	public SmoaContact(String notifierXmppName, String jobReceiverXmppName,
			String notifierResource, String jobReceiverResource) {
		super();
		this.notifierXmppName = "".equals(notifierXmppName) ? null : notifierXmppName;
		this.jobReceiverXmppName = "".equals(jobReceiverXmppName) ? null : jobReceiverXmppName;
		this.notifierResource = "".equals(notifierResource) ? null : notifierResource;
		this.jobReceiverResource = "".equals(jobReceiverResource) ? null : jobReceiverResource;
	}

	public String getNotifierResource() {
		return notifierResource;
	}

	public void setNotifierResource(String notifierResource) {
		this.notifierResource = notifierResource;
	}

	public String getJobReceiverResource() {
		return jobReceiverResource;
	}

	public void setJobReceiverResource(String jobReceiverResource) {
		this.jobReceiverResource = jobReceiverResource;
	}

	public String getNotifierXmppName() {
		return notifierXmppName;
	}

	public void setNotifierXmppName(String notifierXmppName) {
		this.notifierXmppName = notifierXmppName;
	}

	public String getJobReceiverXmppName() {
		return jobReceiverXmppName;
	}

	public void setJobReceiverXmppName(String jobReceiverXmppName) {
		this.jobReceiverXmppName = jobReceiverXmppName;
	}

}
